home *** CD-ROM | disk | FTP | other *** search
/ AOL File Library: 2,801 to 2,900 / aol-file-protocol-4400-2801-to-2900.zip / AOLDLs / C++ Files Library / SK (Sockects) 1.4.1 r2 / SK v1.4.1 r2.sit / SK 1.4.1 r2 / SK / TCP Headers / GetMyIPAddr.h < prev    next >
Text File  |  1993-06-15  |  758b  |  37 lines

  1. /* 
  2.     GetMyIPAddr.h    
  3.     C definitions of parameter block entries needed for IP calls
  4.  
  5.     Copyright Apple Computer, Inc. 1989 
  6.     All rights reserved
  7.     
  8. */
  9.  
  10. #ifndef __GETMYIPADDR__
  11. #define __GETMYIPADDR__
  12.  
  13. #ifndef __MACTCPCOMMONTYPES__
  14. #include <MacTCPCommonTypes.h>
  15. #endif
  16.  
  17. #define ipctlGetAddr        15            /* csCode to get our IP address */
  18.  
  19. #define GetIPParamBlockHeader     \
  20.     struct QElem *qLink;     \
  21.     short qType;             \
  22.     short ioTrap;             \
  23.     Ptr ioCmdAddr;             \
  24.     ProcPtr ioCompletion;     \
  25.     OSErr ioResult;         \
  26.     StringPtr ioNamePtr;     \
  27.     short ioVRefNum;        \
  28.     short ioCRefNum;        \
  29.     short csCode
  30.  
  31. struct GetAddrParamBlock {
  32.     GetIPParamBlockHeader;            /* standard I/O header */
  33.     ip_addr    ourAddress;            /* our IP address */
  34.     long    ourNetMask;            /* our IP net mask */
  35.     };
  36.  
  37. #endif